package com.smart.five.ioc.annotation.list;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 标注集合类
 * @author junrui.wang
 * @create 2018/6/14
 */
@Service
public class UserListService {

    //Spring会将容器中所有的User的bean注入这个变量中
    @Autowired
    private List<User> users;

    //Spring会将容器中所有的User的bean注入这个变量中
    @Autowired
    //key为bean的name
    private Map<String, User> userMaps;

}
